<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 3/11 -->
<%@page contentType="text/html; charset=UTF-8" import="user.DisplayRestaurantPage"%>
<%@page contentType="text/html; charset=UTF-8" import="user.DisplayFoodPage"%>
<%@page contentType="text/html; charset=UTF-8" import="user.DisplayShoppingCart"%>

<%
	String type;
	if (session.getAttribute("uType") != null)
		type = session.getAttribute("uType").toString();
	else 
		type = null;
 %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Customer_page</title>
<style type="text/css">
<!--
.STYLE1 {
	font-size: large;
	font-style: italic;
	font-weight: bold;
}
.STYLE2 {color: #0000FF}
-->
</style>
</head>


<body leftMargin="0" topMargin="0">
<IFRAME id="addtocart" style="LEFT: 0px; TOP: 0px" name="addtocart" src="about:blank" frameBorder="0" width="0" scrolling="no" height="0"></IFRAME>
<IFRAME id="addtofav" style="LEFT: 0px; TOP: 0px" name="addtofav" src="about:blank" frameBorder="0" width="0" scrolling="no" height="0"></IFRAME>


<TABLE cellSpacing=0 cellPadding=0 width=810 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width="24%"><A href="index.jsp"><IMG 
      height=118 src="Pics/restaurantLogo.JPG" width=242 
      border=0></A></TD>
    <td valign="top"><br></td><TD width="76%">
	<form action="./servlet/FoodSearching" method="post">
	<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">          
		  <tr> 		  	
            <td>				 
			 <div align="center"> 
                <select name="select_restaurant" onChange="changelocation(document.frmLink.L_CityID.options[document.frmLink.L_CityID.selectedIndex].value)" style="width:80px">
                  <option value="0">Any</option>
                  <!-- 3/11 -->
                  <%=DisplayRestaurantPage.getRestaurantListItems()%>
				  
                </select>
			  </div>			  
			  </td>
            <td align="center"><input name="price_search" type="text" class="input" id="keyword" size="30" value="search for prices" onMouseDown="this.value=''"></td>
            
			<td align="center"><input name="keyword_search" type="text" class="input" id="keyword" size="30" value="search for keywords" onMouseDown="this.value=''"></td>
			<td width="63" align="center"><input name="search_button" type="submit" id="button1" value="Search"></td>
          </tr>	  
        </table>
		</form>
		
		
      </TD>
  </TR></TBODY></TABLE>

<BR>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
  <TBODY>
  
  <TR>
   
    <TD align="center" background=restaurant%20page_files/w_7.gif>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD align="center" width="28%">
            
      
            <TABLE height=8 cellSpacing=0 cellPadding=0 width=90 align=center 
            border=0>
              <TBODY>
              <TR>
                
              </TR></TBODY></TABLE></TD>
          <TD vAlign=top align="center" width="72%">
            </TD>                
              </TR>
                </TABLE></TD>
  <TR>
    
  </TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=785 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top height=354>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width="24%"><TABLE height=2 cellSpacing=0 cellPadding=0 align=center 
            border=0>
              <TBODY>
              <TR><TD align = "center"  vAlign=top>
              <% 
              	if (type == null);
               	else if (type.equals("1")) { 
               %>
              <a href = "./customer_account.jsp">Customer</a><br><br>
              <% } else if (type.equals("2")) {%>
              <a href = "./restaurant_account.jsp">Restaurant</a><br><br>
              <% } else { %>
               <a href = "./administrator_account.jsp">Administrator</a><br><br>
              <% } %>
              
              <% if (type == null || type.equals("1")) {%>
              <table bgColor=#929292 border = 0.5>
              <tr><td>shopping cart:</td></tr>
              <tr><td align = left>   
              	<% 
              		String username = null;
              		if (session.getAttribute("username") != null)
              			username = session.getAttribute("username").toString();              	
              	%>                                          
                <%= DisplayShoppingCart.getOrderedFoodInfo(username) %>   
                </td></tr>
                </table>   
                <%} %>         
                </TD>
                <TD></TD></TR></TBODY></TABLE>
            
          <TD vAlign=top width="76%">
            <TABLE cellSpacing=1 cellPadding=0 width="100%" align=center 
            bgColor=#929292 border=0>
           </TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bgColor=#929292>
              <TBODY>
              <TR>
                <TD>
					<a href="checkout.jsp">Check Out Now!</a>				</TD>
              </TR></TBODY></TABLE>
            <TABLE cellSpacing=1 cellPadding=0 width="100%" align=center 
            bgColor=#929292 border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD bgColor=#eeeeee height=24><FONT 
                        color=#000000><STRONG>Search Result: </STRONG></FONT></TD>
                    </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>           
						  
                          <%=DisplayFoodPage.displayFoodSearchingResult()%>
                          
            <TABLE cellSpacing=1 cellPadding=0 width="100%" align=center 
            bgColor=#929292 border=0>              
              
              <TBODY>
              <TR>
                <TD>
					<a href="checkout.jsp">Check Out Now! 
				    </a></TD>
              </TR></TBODY></TABLE>
                
            </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

</BODY></HTML>
